package com.android.scj.tc.bean;

/**
 *
 * PSAM通道请求
 * @author LiuYaDong
 */
public class PSAMPassRequest {
	/**
	 * 	0	1	PSAM卡槽号	0x00~0x05表示卡槽号
	 1	1	APDU指令数	当指令数为0时，表示对PSAM的复位
	 2	1	指令1长度
	 3	n	指令1内容

	 */
	private static final String cmdcode = "F9";
	private static String PsamPosion = "";
	private static String Context = "";
	private PSAMPassRequest(){};

	public static CMD_55AA create(String psamPosion,String context) {
		PsamPosion = psamPosion;
		Context = context;
		return CMD_55AA.create(cmdcode, PsamPosion+Context);
	}

	public static void setContext(String context) {
		Context = context;
	}

	public static void setPsamPosion(String psamPosion){
		PsamPosion = psamPosion;
	}

}
